package com.web.exception;

import lombok.Getter;

/**
 * @Description 异常枚举
 * @Author zhu_jinsheng[zhu_js@suixingpay.com]
 * @Date 2019/12/3 21:46
 * @Version 1.0
 */
@Getter
public enum ExceptionEnum {
    UNKNOW_ERROR(-1,"未知错误"),
    USER_NOT_FIND(401,"用户未认证"),
    SYS_ERROR(500, "亲，系统出错了哦~"),
    PARAM_INVILAD(500, "参数出现异常"),
    ;
    /**
     * 状态码
     */
    private Integer status;

    /**
     * 提示信息
     */
    private String msg;

    ExceptionEnum(Integer status, String msg) {
        this.status = status;
        this.msg = msg;
    }
}
